﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FirmaKurierska.Areas.Admin.Models
{
    /// <summary>
    /// Klasa reprezentująca widoku użytkownika i możliwe do wyboru role
    /// </summary>
    public class UzytkownikViewModel
    {
        public string Login { get; set; }
        public string Imie { get; set; }
        public int UserId { get; set; }
        public string Rola { get; set; }
        public int CentralaId { get; set; }
        public string CentralaName { get; set; }
        public string Selected { get; set; }

        public List<SelectListItem> items = new List<SelectListItem>();

        public UzytkownikViewModel()
        {
            items.Add(new SelectListItem { Text = "Administrator", Value = "0" });
            items.Add(new SelectListItem { Text = "Klient", Value = "1" });
            items.Add(new SelectListItem { Text = "Kierowca", Value = "2" });
            items.Add(new SelectListItem { Text = "Pracownik", Value = "3" });

            Selected = "1";
        }
    }
}